package com.zh.elec.dao.impl;

import java.util.List;

import com.zh.elec.dao.ServicesDao;
import com.zh.elec.dao.base.BaseDao;
import com.zh.elec.model.Services;

public class ServicesDaoImpl extends BaseDao implements ServicesDao {

	@Override
	public Object save(Services obj) {
		return this.saveOrUpdate(obj);
	}

	@Override
	public Object update(Services obj) {
		return this.saveOrUpdate(obj);
	}

	@Override
	public Object getObjById(Services obj) {
		return this.getObjById(obj);
	}

	@Override
	public Object del(Services obj) {
		return this.del(obj);
	}

	@SuppressWarnings("unchecked")
	@Override
	public List<Services> findByHql(String hql) {
		return this.find(hql);
	}

	@Override
	public List<Services> findByName(String name, Object value) {
		return this.findByName(name, value);
	}
	@Override
	public List<Services> findAll() {
		return this.findByHql(" from Services ");
	}

}
